#ifndef PAGEPISBREAKERTEST_H
#define PAGEPISBREAKERTEST_H

#include <QWidget>
#include <QTimer>
#include <QLabel>
#include "global_def.h"

namespace Ui {
class PagePISBreakerTest;
}

class PagePISBreakerTest : public QWidget
{
    Q_OBJECT

public:
    explicit PagePISBreakerTest(QWidget *parent = nullptr);
    ~PagePISBreakerTest();
    void setPISBreakStat(int index,bool stat);
signals:
    void signal_ResetPISBreaker(bool);
    void signal_OpenPISBreaker(uint8_t index, bool xOpen);
    void returnToMaintMenu();
private slots:
    void on_ButtonReset_clicked();
    void on_Button_Open1_clicked();
    void on_Button_Open2_clicked();
    void on_Button_Open3_clicked();
    void on_Button_Open4_clicked();
    void on_Button_Open5_clicked();
    void on_Button_Open6_clicked();
    void on_Button_Open7_clicked();
    void on_Button_Open8_clicked();
    void on_Btn_Return_clicked();
private:
    Ui::PagePISBreakerTest *ui;
    QList<QLabel*> pis_break_list_;
};

#endif // PAGEPISBREAKERTEST_H
